<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
	<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
		<!DOCTYPE >
		<html>

		<head>
			<base href="<%=basePath%>">
			<title>NIPT检测</title>
			<meta charset="utf-8" />
			<meta http-equiv="X-UA-Compatible" content="IE=edge" />
			<meta name="viewport" content="width=device-width, initial-scale=1" />
			<link rel="icon" href="favicon.ico" />
			<link href="static/manage-sys/css/bootstrap.min.css" rel="stylesheet" />
			<link href="static/manage-sys/css/font-awesome.min.css" rel="stylesheet" />
			<link href="static/manage-sys/css/default.css" rel="stylesheet" type="text/css" />
			<script src="static/manage-sys/js/jquery.min.js"></script>
			<!--[if lt IE 9]>
			  <script src="js/bootstrap/html5shiv.min.js"></script>
			  <script src="js/bootstrap/respond.min.js"></script>
			<![endif]-->
			<!--页面加载进度条-->
			<link href="static/manage-sys/css/pace/dataurl.css" rel="stylesheet" />
			<script src="static/manage-sys/js/pace/pace.min.js"></script>
			<script src="static/manage-sys/js/jquery.scrolltopcontrol/scrolltopcontrol.js" type="text/javascript"></script>
			<script src="static/manage-sys/js/jquery.extend.js" type="text/javascript"></script>
			<script src="static/manage-sys/js/default.js" type="text/javascript"></script>

			<link rel="stylesheet" type="text/css" href="static/manage-sys/add-sample/easyui/themes/ui-cupertino/easyui.css" />
			<link rel="stylesheet" type="text/css" href="static/manage-sys/add-sample/easyui/themes/icon.css" />
			<link rel="stylesheet" type="text/css" href="static/manage-sys/add-sample/css/icon.css" />
			<link rel="stylesheet" type="text/css" href="static/manage-sys/add-sample/css/uims.css" />
			<link rel="stylesheet" type="text/css" href="static/manage-sys/add-sample/css/temp.css" />
			<!-- NIPT检测页面样式-->
			<link rel="stylesheet" type="text/css" href="static/manage-sys/add-sample/css/nifty.css" />

			<script type="text/javascript" src="static/manage-sys/add-sample/easyui/jquery.easyui.min.js"></script>
			<script type="text/javascript" src="static/manage-sys/add-sample/easyui/locale/easyui-lang-zh_CN.js"></script>

			<script src="static/manage-sys/js/bootstrap/bootstrap.min.js"></script>
			<script src="static/manage-sys/js/bootstrap/bootstrap-table.min.js"></script>
			<script src="static/manage-sys/js/bootstrap/bootstrap-table-zh-CN.min.js"></script>

			<script type="text/javascript" src="static/manage-sys/add-sample/js/dataGridCellTip.js"></script>
			<script type="text/javascript" src="static/manage-sys/add-sample/js/validate.js"></script>
			<script type="text/javascript" src="static/manage-sys/add-sample/js/json2.js"></script>
			<script type="text/javascript" src="static/manage-sys/add-sample/js/sampleCommon.js"></script>
			<script type="text/javascript" src="static/manage-sys/add-sample/js/template.js"></script>

			<!-- artTemplate 模板引擎 -->
			<script src="static/manage-sys/js/template-web.js" type="text/javascript"></script>

			<!-- 设置送检单位 -->
			<script src="static/manage-sys/js/set-customer.js" type="text/javascript"></script>

		</head>

		<body>
			<!--我是主要内容-->
			<div class="container">
				<div class="content">
					<div class="coupon-box" onclick="chooseCoupon()">
						选择免费券
					</div>
					<table class="second-table t-group">
						<thead></thead>
						<tbody>
							<tr class="blue-tr">
								<td class="droppable t-group-title">关键信息</td>
							</tr>
							<%--<tr>--%>
								<%--<td class="droppable">--%>
									<%--<span class="field t-group-item">--%>
										<%--<span class="required">*</span>--%>
										<%--<i class="t-field-id" data-value="customerCode"></i>--%>
										<%--<i class="t-type" data-value="text"></i>--%>
										<%--<i class="t-name t-require">送检单位</i>：--%>
										<%--<select value="" class="addressCounty" onchange="onAddressCountyChange(this.value)"></select>--%>
										<%--<input id="customerCode" style="width:168px;" class="easyui-combobox" data-options="valueField:'customerCode',textField:'customerName'">--%>
									<%--</span> --%>
								<%--</td>--%>
							<%--</tr>--%>
                            <tr>
								<td class="droppable column3">
                                     <span class="field t-group-item">
										<i class="t-field-id" data-value="sampleName"></i>
										<i class="t-type" data-value="text"></i>
										<i class="t-name">科室</i>：
										<input type="text" id="departments"  >
									</span>

									<span class="field t-group-item">
										<span class="required">*</span>
										<i class="t-field-id" data-value="bloodDate"></i>
										<i class="t-name t-require">采样日期</i>：
										<input type="date" id="bloodDate" validate="required" min="1990-01-01" max="2999-05-20" style="width: 170px;" class="t-value">
									</span>

								</td>
							</tr>
							<tr>
								<td class="droppable column3">
									<span class="field t-group-item">
										<span class="required">*</span>
										<i class="t-field-id" data-value="sampleName"></i>
										<i class="t-type" data-value="text"></i>
										<i class="t-name t-require">姓名</i>：
										<input type="text" id="sampleName" validate="required">
									</span>
                                    <span class="field t-group-item">
										<span class="required">*</span>
										<i class="t-type" data-value="split"></i>
										<i class="t-field-id" data-value="gestationalWeeks"></i>
										<i class="t-name t-require">孕周</i>：
										<span class="t-group-item-split">
											<i class="t-field-id" data-value="gestationalWeeks1"></i>
											<i class="t-hint" data-value=""></i>
											<i class="t-type" data-value="number"></i>
											<i class="t-name t-require" style="display: none;">孕周</i>
											<input type="text" id="gestationalWeeks1" validate="required" style="width: 80px;">
										</span>
										<span class="t-group-item-split">
											<i class="t-hint" data-value=""></i>
											<i class="t-type" data-value="number"></i>
											<i class="t-field-id" data-value="gestationalWeeks2"></i>
											<i class="t-name t-require">W+</i>
											<input type="text" id="gestationalWeeks2" validate="required" style="width: 80px;">
										</span>
										<input type="text" id="gestationalWeeks" style="opacity: 0;border:0px;"/>
									</span>

								</td>
							</tr>
							

							<tr>
								<td class="droppable column3">
									<span class="field t-group-item">
										<span class="required">*</span>
										<i class="t-field-id" data-value="idCard"></i>
										<i class="t-type" data-value="idCard"></i>
										<i class="t-name t-require">身份证/护照</i>：
										<input type="text" id="idCard" validate="required,idCard" onblur="idCardBlur()" class="t-value"  >
									</span>
									<span class="field t-group-item">
										<span class="required">*</span>
										<i class="t-field-id" data-value="motherPhoneNum"></i>
										<i class="t-type" data-value="phoneNum"></i>
										<i class="t-name t-require">联系电话</i>：
										<input type="text" id="motherPhoneNum" validate="required,phoneNum" class="t-value">
									</span>
									<span class="field t-group-item">
										<i class="t-field-id" data-value="husbandPhoneNum"></i>
										<i class="t-type" data-value="phoneNum"></i>
										<i class="t-name">丈夫电话</i>：
										<input type="text" id="husbandPhoneNum" validate="phoneNum">
									</span>
								</td>
							</tr>
						</tbody>
					</table>
					<table class="second-table t-group">
						<tr class="blue-tr">
							<td class="droppable t-group-title">基本情况</td>
						</tr>
						<tr>
							<td class="droppable column3">

								<span class="field t-group-item">
									<span class="required">*</span>
									<i class="t-field-id" data-value="sampleAge"></i>
									<i class="t-type" data-value="number"></i>
									<i class="t-name t-require">年龄</i>：
									<input type="text" id="sampleAge" validate="required" style="width: 150px;" class="t-value">
								</span>
							</td>
						</tr>
						<tr>
							<td class="droppable column3">
								<span class="field" style="text-align: left;">
									<span class="t-group-item">
										<span class="required">*</span>
										<i class="t-field-id" data-value="bodyWeight"></i>
										<i class="t-type" data-value="text"></i>
										<i class="t-name">体重</i>：
										<input type="text" id="bodyWeight" validate="required" style="width: 50px;">
										<i class="t-unit">公斤</i>
									</span>
									<span class="t-group-item"> &nbsp;
										<span class="required">*</span>
										<i class="t-field-id" data-value="bodyHeight"></i>
										<i class="t-name">身高</i>：
										<i class="t-type" data-value="text"></i>
										<input type="text" id="bodyHeight" validate="required" style="width: 50px;">
										<i class="t-unit">厘米</i>
									</span>
								</span>
								<span class="field t-group-item"> &nbsp;
										<span class="required">*</span>
									<i class="t-field-id" data-value="lmp"></i>
									<i class="t-name">末次月经</i>：
									<input type="date" id="lmp" min="1990-01-01" validate="required" max="2999-05-20" class="t-value">
								</span>

							</td>
						</tr>
						<tr>
							<td class="droppable column3">
									<span class="field t-group-item">
										<i class="t-field-id" data-value="ntValue"></i>
										<i class="t-type" data-value="ntValue"></i>
										<i class="t-name t-require">NT测定值</i>：
										<input type="text" id="ntValue" class="t-value"  >mm
									</span>
								<span class="field t-group-item">
										<i class="t-field-id" data-value="trisomy21"></i>
										<i class="t-type" data-value="trisomy21"></i>
										<i class="t-name t-require">21三体综合症1/</i>
										<input type="text" id="trisomy21" class="t-value">
									</span>
								<span class="field t-group-item">
										<i class="t-field-id" data-value="trisomy18"></i>
										<i class="t-type" data-value="trisomy18"></i>
										<i class="t-name">18三体综合症1/</i>
										<input type="text" id="trisomy18">
									</span>
							</td>
						</tr>
						<tr>
							<td class="droppable column3">
								<span class="field t-group-item" style="text-align: left">
									<i class="t-field-id" data-value="clinicalDiagnosis"></i>
									<i class="t-name">临床诊断</i>：
									<input type="text" id="clinicalDiagnosis" style="width: 183px;" class="t-value">
								</span>
								<span class="field t-group-item">
									<i class="t-field-id" data-value="doctorName"></i>
									<i class="t-name">医生姓名</i>：
									<input type="text" id="doctorName" class="t-value">
								</span>

							</td>
						</tr>
						<tr>
							<td class="droppable">
								<span class="field t-group-item">
									<i class="t-field-id" data-value="familyAddress"></i>
									<i class="t-name">通讯地址（或电子邮箱）</i>：
									<input type="text" id="familyAddress" class="t-value" style="width: 600px;">
								</span>
							</td>
						</tr>
						<tr>
							<td class="droppable column2">
								<span class="group-field field t-group-item" validate="required">
									<span class="required">*</span>
									<i class="t-field-id" data-value="pregnancy"></i>
									<i class="t-name">本次妊娠方式</i>：
									<input name="xx0.9218910641346394" id="pregnancy_0" type="checkbox" class="t-value" data-name="自然受孕" data-value="0">自然受孕
									<input name="xx0.9218910641346394" id="pregnancy_1" type="checkbox" class="t-value" data-name="促排卵" data-value="1">促排卵
									<input name="xx0.9218910641346394" id="pregnancy_2" type="checkbox" class="t-value" data-name="宫内人工受精" data-value="2">宫内人工受精
								</span>
								<span class="group-field field t-group-item" style="text-align: left;" validate="required">
									<span class="required">*</span>
									<i class="t-field-id" data-value="adosculation"></i>
									<i class="t-name t-require">是否IVF</i>：
									<input name="xx0.44586902149771435" id="adosculation_0" type="checkbox" class="t-value" data-name="否" data-value="0">否
									<input name="xx0.44586902149771435" id="adosculation_1" type="checkbox" class="t-value" data-name="是" data-value="1">是
								</span>
							</td>
						</tr>
					</table>
					<table class="second-table t-group">
						<tr class="blue-tr">
							<td class="droppable t-group-title">既往病史</td>
						</tr>
						<tr>
							<td class="droppable">
								<span class="field t-group-item">
                                	<span class="required">*</span>
									<i class="t-field-id" data-value="personalReproductiveHistory"></i>
									<i class="t-name">生育史</i>：
									<i class="t-field-id" data-value="personalReproductiveHistory"></i>
									<i class="t-type" data-value="split"></i>
									<i class="t-unit"></i>
									<span class="t-group-item-split">
										<i class="t-field-id" data-value="pregnancyNum"></i>
										<i class="t-hint" data-value=""></i>
										<i class="t-type" data-value="text"></i>
										<i class="t-name">孕</i>
										<input type="text" validate="int,required" id="pregnancyNum" style="width: 45px;">
										<i class="t-unit">次</i>
									</span>
									<span class="t-group-item-split">
										<i class="t-field-id" data-value="produceNum"></i>
										<i class="t-hint" data-value=""></i>
										<i class="t-type" data-value="text"></i>
										<i class="t-name">产</i>
										<input type="text" validate="int,required" id="produceNum" style="width: 45px;">
										<i class="t-unit">次</i>,
									</span>
								</span>
								<span class="field t-group-item">
									<i class="t-field-id" data-value="familyProduce"></i>
									<i class="t-name">家族史</i>：
									<input type="text" id="familyProduce" style="width: 346px;" class="t-value">
								</span>
							</td>
						</tr>
						<tr>
							<td class="droppable">
								<span class="group-field field t-group-item" validate="required">
                                	<span class="required">*</span>
									<i class="t-field-id" data-value="abnormalPregnancyHistory"></i>
									<i class="t-name">不良孕产史</i>：
									<input name="xx0.6405569958060631" id="abnormalPregnancyHistory_0" type="checkbox" class="t-value" data-name="无" data-value="0">无
									<input name="xx0.6405569958060631" id="abnormalPregnancyHistory_1" type="checkbox" class="t-value" data-name="有" data-value="1">有
								</span>

								<span class="field t-group-item">&nbsp;&nbsp;
                                	<span class="required">*</span>
									<i class="t-field-id" data-value="naturalAbortionNum"></i>
									<i class="t-type" data-value="number"></i>
									<i class="t-name t-require">自然流产次数</i>：
									<input type="text" id="naturalAbortionNum" validate="required" style="width: 33px;">
									<i class="t-unit" style="display: none;">次</i>
								</span>
								<span>次</span>
								<span class="field t-group-item">&nbsp;&nbsp;
                                	<span class="required">*</span>
									<i class="t-field-id" data-value="stillbirthNum"></i>
									<i class="t-type" data-value="number"></i>
									<i class="t-name">死胎病史</i>：
									<input type="text" id="stillbirthNum" validate="required" style="width: 30.8px;">
									<span>&nbsp;&nbsp;</span>
									<i class="t-unit" style="display: none;">次</i>
								</span>
								<span>次</span>

							</td>
						</tr>
                        <tr>
                          <td class="droppable">
                            <span class="group-field field t-group-item" validate="required">
                                <input class="submit" id="ckTestOther-input" type="hidden" value="" />
                                <span class="required">*</span>
									<i class="t-field-id" data-value="ckTestOther"></i>
									<i class="t-name">畸形儿孕产史</i>：
									<input name="xx0.03065537021515552" id="ckTestOther_-1" type="checkbox" class="t-value" data-name="否" data-value="-1" onclick="getChoice(this)">否
									<input name="xx0.03065537021515552" id="ckTestOther_0" type="checkbox" class="t-value" data-name="13三体" data-value="0" onclick="getChoice(this)">13三体
								    <input name="xx0.03065537021515552" id="ckTestOther_1" type="checkbox" class="t-value" data-name="18三体" data-value="1" onclick="getChoice(this)">18三体
                                   <input name="xx0.03065537021515552" id="ckTestOther_2" type="checkbox" class="t-value" data-name="21三体" data-value="2" onclick="getChoice(this)">21三体
                                <input name="xx0.03065537021515552" id="ckTestOther_3" type="checkbox" class="t-value" data-name="神经管缺陷" data-value="3" onclick="getChoice(this)">神经管缺陷
                                <input name="xx0.03065537021515552" id="ckTestOther_4" type="checkbox" class="t-value" data-name="其他" data-value="4" onclick="getChoice(this)">其他
								</span>
                          </td>
                        </tr>

						<tr>
							<td class="droppable column2">
								<span class="group-field field t-group-item" validate="required">
                                	<span class="required">*</span>
									<i class="t-field-id" data-value="gravidaKaryotype"></i>
									<i class="t-name">孕妇染色体核型</i>：
									<input name="xx0.17762032921738125" id="gravidaKaryotype_0" type="checkbox" class="t-value" data-name="未做" data-value="0">未做
									<input name="xx0.17762032921738125" id="gravidaKaryotype_1" type="checkbox" class="t-value" data-name="正常" data-value="1">正常
									<input name="xx0.17762032921738125" id="gravidaKaryotype_2" type="checkbox" class="t-value" data-name="异常" data-value="2">异常
								</span>
								<span class="group-field field t-group-item" validate="required">
                                	<span class="required">*</span>
									<i class="t-field-id" data-value="husbandKaryotype"></i>
									<i class="t-name">丈夫染色体核型</i>：
									<input name="xx0.5398099047701526" id="husbandKaryotype_0" type="checkbox" class="t-value" data-name="未做" data-value="0">未做
									<input name="xx0.5398099047701526" id="husbandKaryotype_1" type="checkbox" class="t-value" data-name="正常" data-value="1">正常
									<input name="xx0.5398099047701526" id="husbandKaryotype_2" type="checkbox" class="t-value" data-name="异常" data-value="2">异常
								</span>
							</td>
						</tr>
						<tr>
							<td class="droppable column2">
								<span class="group-field field t-group-item" validate="required">
									既往史:
									<span class="required">*</span>
									<i class="t-field-id" data-value="allogeneticTransfusion"></i>
									<i class="t-name t-require">一年内异体输血</i>：
									<input name="xx0.7844767959731702" id="allogeneticTransfusion_0" checked="checked" type="checkbox" class="t-value" data-name="无"
									 data-value="0">无
									<input name="xx0.7844767959731702" id="allogeneticTransfusion_1" type="checkbox" class="t-value" data-name="有（不接受）" data-value="1">有（不接受）
								</span>
								<span class="group-field field t-group-item" validate="required">
									<span class="required">*</span>
									<i class="t-field-id" data-value="cellularImmunity"></i>
									<i class="t-name t-require">四周内异体细胞免疫</i>：
									<input name="xx0.13005703123732992" id="cellularImmunity_0" checked="checked" type="checkbox" class="t-value" data-name="无"
									 data-value="0">无
									<input name="xx0.13005703123732992" id="cellularImmunity_1" type="checkbox" class="t-value" data-name="有（不接受）" data-value="1">有（不接受）
								</span>
							</td>
						</tr>
						<tr>
							<td class="droppable column2">
								<span class="group-field field t-group-item" validate="required">
									<span class="required" style="margin-left: 49px;">*</span>
									<i class="t-field-id" data-value="surgicalTransplantation"></i>
									<i class="t-name t-require">移植手术</i>：
									<input name="xx0.3803408671393358" id="surgicalTransplantation_0" checked="checked" type="checkbox" class="t-value" data-name="无"
									 data-value="0">无
									<input name="xx0.3803408671393358" id="surgicalTransplantation_1" type="checkbox" class="t-value" data-name="有（不接受）" data-value="1">有（不接受）
								</span>
								<span class="group-field field t-group-item" validate="required">
									<span class="required">*</span>
									<i class="t-field-id" data-value="stemCell"></i>
									<i class="t-name t-require">干细胞治疗</i>：
									<input name="xx0.13527403573847807" id="stemCell_0" checked="checked" type="checkbox" class="t-value" data-name="无" data-value="0">无
									<input name="xx0.13527403573847807" id="stemCell_1" type="checkbox" class="t-value" data-name="有（不接受）" data-value="1">有（不接受）
								</span>
							</td>
						</tr>

						</tbody>
					</table>
					<table class="second-table t-group">
						<tr class="blue-tr">
							<td class="droppable t-group-title">辅助检查</td>
						</tr>

                        <tr>
                            <td class="droppable">
                              <span class="group-field field t-group-item">
                                  <input class="submit" id="btypeAbnormal-input" type="hidden" value="" />
									<i class="t-field-id" data-value="btypeAbnormal"></i>
									<i class="t-name">B超异常</i>：
									<input name="xx0.8078310630244527" id="btypeAbnormal_0" type="checkbox" class="t-value" data-name="无" data-value="0" onclick="getChoice(this)">无 
									<input name="xx0.8078310630244527" id="btypeAbnormal_1" type="checkbox" class="t-value" data-name="有" data-value="1" onclick="getChoice(this)">有
                                  &nbsp;<input type="text" id="btypeAbnormalDesc" style="width: 150px;" class="t-value">
								</span>
                                <span>&nbsp;&nbsp;</span>
                                <span class="group-field field t-group-item"  validate="required">
									<span class="required">*</span>
                                    <input class="submit" id="btypeUltrasonic-input" type="hidden" value="" />
									<i class="t-field-id" data-value="btypeUltrasonic"></i>
									<i class="t-name">胎数</i>：
									<input name="xx0.8078310630244527" id="btypeUltrasonic_0" type="checkbox" class="t-value" data-name="单胎" data-value="0" onclick="getChoice(this)">单胎 
									<input name="xx0.8078310630244527" id="btypeUltrasonic_1" type="checkbox" class="t-value" data-name="双胎" data-value="1" onclick="getChoice(this)">双胎
                                  
								</span>
                            </td>
                        </tr>
					</table>
					<table class="second-table t-group">
						<tbody>
						<tr class="blue-tr">
							<td class="t-group-title">备注</td>
						</tr>
						<tr>
							<td class="droppable">
									<span class="field t-group-item">
										<i class="t-field-id" data-value="notes"></i>
										<i class="t-name">备注</i>：
										<textarea id="notes" style="width: 520px;height: 80px;border: 1px solid #dfdfdf;margin: 20px 0;" class="t-value"></textarea>
									</span>
							</td>
						</tr>
						</tbody>
					</table>
					<table class="second-table t-group">
						<tr class="blue-tr">
							<td class="droppable t-group-title">产品信息</td>
						</tr>
						<tr>
							<td class="droppable">
								<span class="field t-group-item-product">
									<input id="product_DX0558" type="checkbox" disabled="disabled">
									<b>
										<span id="productName_DX0558" class="t-product-name">胎儿染色体非整倍体（T21、T18、T13）检测（联合探针锚定连接测序法）</span>
									</b>（
									<i class="t-product-value">DX0558</i>）
								</span>
							</td>
						</tr>
					</table>
				</div>
				<div style="width:220px; margin: 30px auto;">
					<button onclick="save();" style="width: 120px; height: 33px; border-radius: 2px; border-radius: 4px; background: rgb(23,134,184); color: #fff; outline: none; border-color: transparent;">保存</button>
				</div>
			</div>
			<!-- 模态框（Modal） -->
			<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
				<div class="modal-dialog">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
								&times;
							</button>
							<h4 class="modal-title" id="myModalLabel">
								免费券列表
							</h4>
						</div>
						<div class="modal-body">
							<div class="search-box" style='display:flex;flex-direction:row'>
								<input type="text" placeholder="请输入证件号码" id="coupon-kw" style="display:inline-block;flex:1">
								<button onclick="searchCoupons()">搜索</button>
							</div>
							<div class="no-coupon">
								不使用免费券
							</div>
							<div class="empty-coupon">
								没有免费券
							</div>
							<div class="coupon-list">
							</div>
						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-default" data-dismiss="modal">
								关闭
							</button>
						</div>
					</div>
					<!-- /.modal-content -->
				</div>
				<!-- /.modal -->
			</div>

			<a href="#top" id="goTop">
				<i class="fa fa-angle-up fa-3x"></i>
			</a>
			<script type="text/javascript" src="static/manage-sys/add-sample/js/Nifty.js"></script>
			<script type="text/javascript">
				$("#product_DX0558")[0].checked = true;
                //编辑功能进入，展示孕周信息
                $(function (){
                    var gestationWeeks = $("#gestationalWeeks").val();
                    var gestationalWeeks1 = gestationWeeks.substring(0,gestationWeeks.indexOf("W"));
                    var gestationalWeeks2 = gestationWeeks.substring(gestationWeeks.indexOf("+")+1,gestationWeeks.length);

                    $("#gestationalWeeks1").val(gestationalWeeks1);
                    $("#gestationalWeeks2").val(gestationalWeeks2);
                    // $("#saveBtn").hide();
                });
			</script>
			<!-- 优惠券列表渲染 -->
			<script id="coupon-list" type="text/html">
				{{each rows item i}}
					<div class="coupon-item">
						<div class="content-wrapper">
							<div class="name">{{item.couponName}}</div>
							<div class="desc">{{item.couponDesc}}</div>
						</div>
						{{if item.productCode == 'DX0558' && item.status == '1'}}
							<button class="btn btn-primary" onclick="useCoupon('{{item.couponNum}}')">使用</button>
						{{/if}}
						{{if item.productCode != 'DX0558' || (item.productCode == 'DX0558' && item.status != '1')}}
							<button class="btn btn-disbled" disabled>不可用</button>
						{{/if}}
					</div>
				{{/each}}
			</script>
		</body>

		</html>